package net.lzzy.practices.service;

import net.lzzy.practices.constants.Messages;
import net.lzzy.practices.entities.Option;
import net.lzzy.practices.entities.Question;

import java.util.List;
import java.util.UUID;

/**
 * @author 渊何
 */
public interface QuestionService {
    List<Question> get(UUID chapterId);
    Question add(UUID chapterId, Question question, String token);
    Question update(UUID id, Question question, String token);
    Messages remove(UUID id, String token);
    Question addOpen(UUID questionId, Option option, String token);
    Question removeOption(UUID id, String token);
    Question getById(UUID id);
    Integer countBy(UUID chapterId);
}
